Serial Integration Checklist
- Decide the protocol variant: Direct Serial (4.1.1) or DMS Serial Proxy (4.1.2).
- Build payload as UTF-8 route/body string —
<route>[\n<json>]for Direct Serial,:<port><route>[\n<json>]for DMS Serial Proxy. - Prefix payload length (
4-byte BE). - Compute CRC16 over
Length || Payload. - Append CRC (
2-byte BE). - Send frame.
- Read and validate response frame.
- Parse response JSON as the standard response envelope.